package com.question.business.dict.model.ao;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 字典新增参数
 *
 * @author star
 * @since 2023-09-07
 */
@Data
public class DictAddAO {

    /**
     * 上级ID
     */
    @Size(max = 20, message = "上级ID最长不能超过20位")
    private String parentId;

    /**
     * 代码
     */
    @NotBlank(message = "代码不能为空")
    @Size(max = 20, message = "代码最长不能超过20位")
    private String dictCode;

    /**
     * 描述
     */
    @NotBlank(message = "描述不能为空")
    @Size(max = 50, message = "描述最长不能超过50位")
    private String dictDesc;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空")
    private Integer dictOrder;

}